#include "library.h"

#include <iostream>

// 实现初始化干支基础信息
std::map<int, std::string> initBaseInfo()
{
    std::map<int, std::string> stemsBranchesMap;
    stemsBranchesMap[1] = "甲子";
    stemsBranchesMap[2] = "乙丑";
    stemsBranchesMap[3] = "丙寅";
    stemsBranchesMap[4] = "丁卯";
    stemsBranchesMap[5] = "戊辰";
    stemsBranchesMap[6] = "己巳";
    stemsBranchesMap[7] = "庚午";
    stemsBranchesMap[8] = "辛未";
    stemsBranchesMap[9] = "壬申";
    stemsBranchesMap[10] = "癸酉";
    stemsBranchesMap[11] = "甲戌";
    stemsBranchesMap[12] = "乙亥";
    stemsBranchesMap[13] = "丙子";
    stemsBranchesMap[14] = "丁丑";
    stemsBranchesMap[15] = "戊寅";
    stemsBranchesMap[16] = "己卯";
    stemsBranchesMap[17] = "庚辰";
    stemsBranchesMap[18] = "辛巳";
    stemsBranchesMap[19] = "壬午";
    stemsBranchesMap[20] = "癸未";
    stemsBranchesMap[21] = "甲申";
    stemsBranchesMap[22] = "乙酉";
    stemsBranchesMap[23] = "丙戌";
    stemsBranchesMap[24] = "丁亥";
    stemsBranchesMap[25] = "戊子";
    stemsBranchesMap[26] = "己丑";
    stemsBranchesMap[27] = "庚寅";
    stemsBranchesMap[28] = "辛卯";
    stemsBranchesMap[29] = "壬辰";
    stemsBranchesMap[30] = "癸巳";
    stemsBranchesMap[31] = "甲午";
    stemsBranchesMap[32] = "乙未";
    stemsBranchesMap[33] = "丙申";
    stemsBranchesMap[34] = "丁酉";
    stemsBranchesMap[35] = "戊戌";
    stemsBranchesMap[36] = "己亥";
    stemsBranchesMap[37] = "庚子";
    stemsBranchesMap[38] = "辛丑";
    stemsBranchesMap[39] = "壬寅";
    stemsBranchesMap[40] = "癸卯";
    stemsBranchesMap[41] = "甲辰";
    stemsBranchesMap[42] = "乙巳";
    stemsBranchesMap[43] = "丙午";
    stemsBranchesMap[44] = "丁未";
    stemsBranchesMap[45] = "戊申";
    stemsBranchesMap[46] = "己酉";
    stemsBranchesMap[47] = "庚戌";
    stemsBranchesMap[48] = "辛亥";
    stemsBranchesMap[49] = "壬子";
    stemsBranchesMap[50] = "癸丑";
    stemsBranchesMap[51] = "甲寅";
    stemsBranchesMap[52] = "乙卯";
    stemsBranchesMap[53] = "丙辰";
    stemsBranchesMap[54] = "丁巳";
    stemsBranchesMap[55] = "戊午";
    stemsBranchesMap[56] = "己未";
    stemsBranchesMap[57] = "庚申";
    stemsBranchesMap[58] = "辛酉";
    stemsBranchesMap[59] = "壬戌";
    stemsBranchesMap[60] = "癸亥";

    return stemsBranchesMap;
}
